﻿@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<div id="wrapper">
    <div class="clear-fix"></div>
    @using (Html.BeginForm("Prioritize", "GetHelp", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-inline" }))
    {
        <div class="row">
            <div style=" min-heiPHt: 110px; padding-left: 30px; ">
                <h3 class="page-header">Danh sách GH Ưu tiên</h3>
                <span style="color:orangered;">@ViewBag.Msg</span><br />
                @Html.DropDownList("UserId", ViewBag.UserAdmin as IEnumerable<SelectListItem>, new { @class = "combobox" })
                <button type="submit" id="pushPH" class="btn_submit btn btn-default">Push GH</button>
            </div>
        </div>
    }
    <!-- /.row -->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel-body">
                <div class="dataTable_wrapper">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr style="font-family:'Times New Roman'">
                                <th>STT</th>
                                <th>PH User</th>
                                <th>Created</th>
                                <th>Value</th>
                                <th>Status</th>
                            </tr>
                        </thead>
                        <tbody style="font-family:'Times New Roman'">
                            @{int j = 0;}
                            @foreach (var item in ViewBag.lsExists)
                            {

                                j++;
                                <tr>
                                    <td>@j</td>
                                    <td>@item.UserName</td>
                                    <td>@item.CreateDate</td>
                                    <td>@item.Amount</td>
                                    <td>@item.StatusName</td>
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <!-- /.panel -->
    </div>
</div>
<script src="~/Scripts/fm.datetator-fo.jquery.js"></script>
<link href="~/Scripts/fm.datetator.jquery.css" rel="stylesheet" />
<script src="~/Scripts/fm.datetator.jquery.js"></script>
<script type="text/javascript">
    $('#pushPH').on('click', function () {
        return confirm('Bạn có chắc không ?');
    });
    $('.confirmation').on('click', function () {
        return confirm('bạn có chắc chắn muốn xóa?');
    });
</script>

